import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department'
import Employee from './views/org/Employee'
import Permission from './views/auth/Permission'
import Role from './views/auth/Role'
import ShopRegister from './views/ShopRegister'
import Config from "./views/sys/Config";
import Tenant from "./views/Tenant";
import TenantType from "./views/TenantType";
import CarType from './views/car/CarType'
import Car from './views/car/Car'
import Activate from "./views/Activate";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/activate',
        component: Activate,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-bar-chart',
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统中心',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/config', component: Config, name: '系统配置' },
            { path: '/tenantType', component: TenantType, name: '租户类型' },
            { path: '/tenant', component: Tenant, name: '租户管理' },
            { path: '/meal', component: Department, name: '套餐管理' },
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '用户中心',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/user', component: Permission, name: '用户列表' },
            { path: '/userAddress', component: Permission, name: '用户地址' },
            { path: '/userGrow', component: Permission, name: '用户成长记录' },
            { path: '/userReal', component: Permission, name: '用户实名认证' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;